export default class SnowBall2 extends Laya.Script {
    
    constructor() { super(); }
    
    ballCollider: Laya.CircleCollider;

    onEnable(): void {
        let owner = this.owner as Laya.Sprite;

        this.ballCollider = owner.getComponent(Laya.CircleCollider) as Laya.CircleCollider;
    }

    onDisable(): void {

    }


    setRadius(radius: number) {
        this.ballCollider.radius = radius;
    }

    onTriggerEnter() {
        console.log('snow ballllll on triggerEnter');
        let owner = this.owner as Laya.Sprite;

        owner.removeSelf();
    }
    
}